package jieko2;

public class animalDemo {
    public static void main(String[] args) {
        /*创建对象，调用方法*/
        Jumpping j=new Cat();
        j.jump();
        System.out.println("---------");

        animal3 a=new Cat();
        a.setName("加菲");
        a.setAge(5);
        System.out.println(a.getName()+","+a.getAge());
        a.eat();


    }
}